package com.hut.bms.service;

import com.hut.bms.mapper.BookInfoMapper;
import com.hut.bms.model.BookInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeteleBookService {
    //删除一本图书信息
    @Autowired
    private BookInfoMapper bookInfoMapper;
    public Integer deleteBookInfoByStatus(Integer bookId) {
        return bookInfoMapper.deleteBookInfo(bookId);
    }
    //批量删除图书信息
    public Integer batchDeleteBookInfo(List<Integer> ids) {
        return bookInfoMapper.batchDeleteBookInfo(ids);
    }
}
